home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
001-025
/
disk_023
/
ver30
/
sys
/
atari
/
ttyio.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
714b
|
59 lines
/*
* Name: MicroEMACS
* Atari 520ST terminal I/O.
* Version: 30
* Last edit: 05-Feb-86
* By: rex::conroy
* decvax!decwrl!dec-rhea!dec-rex!conroy
*/
#include "def.h"
#include <osbind.h>
int nrow; /* Terminal size, rows. */
int ncol; /* Terminal size, columns. */
/*
* Open. Determine the size of
* the display by calling the assembly
* language "getnrow" and "getncol"
* routines.
*/
ttopen()
{
nrow = getnrow();
if (nrow > NROW)
nrow = NROW;
ncol = getncol();
if (ncol > NCOL)
ncol = NCOL;
}
/*
* No-op.
*/
ttclose()
{
}
/*
* Put character.
*/
ttputc(c)
{
Crawio(c & 0x7F);
}
/*
* No-op.
*/
ttflush()
{
}
/*
* Get characters.
*/
ttgetc()
{
return (Crawcin() & 0x7F);
}